{template "header.html"}
{template "api_list_date_search.html"}
<div class="right-card-box">
    <div class="row table-search-tool">
        <form action="{SELF}" method="get">
            {dr_form_search_hidden()}
            <div class="col-md-12" style="padding-right: 0">
                <label>
                    <div class="input-group fc-input-time date date-picker" data-date-format="yyyy-mm-dd">
                        <input type="text" class="form-control" name="time" value="{$time}">
                        <span class="input-group-btn">
                            <button class="btn default" type="button">
                                <i class="fa fa-calendar"></i>
                            </button>
                        </span>
                    </div>
                </label>
            </div>

            <div class="col-md-12">
                <label><button type="submit" class="btn blue btn-sm onloading" name="submit" > <i class="fa fa-search"></i> {dr_lang('搜索')}</button></label>
                <label><button type="button" onclick="dr_ajax_option('{dr_url('system_log/del', ['time'=>$time])}', '{dr_lang('你确定要清空当天记录吗？')}', 1)" class="btn red btn-sm"> <i class="fa fa-trash"></i> {dr_lang('清空')}</button></label>
            </div>
        </form>
    </div>
    <form class="form-horizontal" role="form" id="myform">
        {dr_form_hidden()}
        <table class="table table-striped table-bordered table-hover  dataTable">
            <thead>
            <tr class="heading">
                <th width="170">{dr_lang('时间')}</th>
                <th width="200">{dr_lang('地址')}</th>
                <th width="150">{dr_lang('操作人')}</th>
                <th>{dr_lang('操作内容')}</th>
            </tr>
            </thead>
            <tbody>
            {loop $list $id $t}
            <tr class="odd gradeX" id="dr_row_{$id}">
                <td>{dr_date($t['time'], 'Y-m-d H:i:s', 'red')}</td>
                <td>{Function_list::ip($t.ip)}</td>
                <td>{Function_list::author($t.username)}</td>
                <td><a href="javascript:;" onclick="dr_show_info('{str_replace([PHP_EOL, chr(13), chr(10)], '<br>', $t.action)}<br><br>{htmlspecialchars($t.url)}')">{$t.action}</td></td>
            </tr>
            {/loop}
            </tbody>
        </table>
        <div class="row">
            <div class="col-md-12 col-sm-12 text-right">
                {$mypages}
            </div>
        </div>

    </form>
</div>


{template "footer.html"}